package com.opennews.openplatform

import groovy.transform.CompileStatic
import org.springframework.http.HttpStatus

/**
 * This is used by upload package.
 * We need to check and refresh the token if it can.
 * Remember to set this url as isFullyAuthenticated() in spring security rest.
 * We are making a http get request to this url before upload.
 */
@CompileStatic
class TokenCheckController extends BaseController {
    // region: Get actions.
    def index() {
        sendStatusResponse(HttpStatus.NO_CONTENT)
    }
    // endregion
}